@extends('layouts.base')
@section('title', '补货管理')
@section('content')

<!-- ============================================================== -->
<!-- Container fluid  -->
<!-- ============================================================== -->
<div class="container-fluid">
	<!-- ============================================================== -->
	<!-- Bread crumb and right sidebar toggle -->
	<!-- ============================================================== -->
	<div class="row page-titles">
	    <div class="col-md-5 align-self-center">
	        <h3 class="text-themecolor">补货--列表</h3>
	    </div>
	    <div class="col-md-7 align-self-center">
	        <ol class="breadcrumb">
	            <li class="breadcrumb-item"><a href="javascript:void(0)">首页</a></li>
	            <li class="breadcrumb-item">补货管理</li>
	            <li class="breadcrumb-item active">补货列表</li>
	        </ol>
	    </div>
	</div>
	<!-- ============================================================== -->
	<!-- End Bread crumb and right sidebar toggle -->
	<!-- ============================================================== -->

	<!-- ============================================================== -->
	<!-- Start Page Content -->
	<!-- ============================================================== -->
	<div class="row">
	    <div class="col-12">
	        <div class="card">
	            <div class="card-body">
	                <h4 class="card-title">补货列表</h4>
	                <h6 class="card-subtitle"></h6>
                	<div class="card-body">
                        <form method="get" action="{{ route('admin.replenishment.index') }}">
							<div class="form-row">
								<div class="col-md-3 mb-3">
									<label for="validationDefault04">操作人</label>
									<input type="text" name="operationame" class="form-control" id="validationDefault04" placeholder="操作人" value="{{ $operationame }}" >
								</div>
								<div class="col-md-3 mb-3">
									<label for="validationDefault05">设备名称</label>
									<input type="text" name="machines_name" class="form-control" id="validationDefault05" placeholder="设备名称" value="{{ $machines_name }}" >
								</div>
							</div>
                            <button class="btn btn-primary" type="submit">筛选</button>
                            <a href="{{ route('admin.replenishment.index') }}" class="btn btn-info">重置</a>
                        </form>
                    </div>        
	                <div class="table-responsive">
	                    <table id="demo-foo-addrow" class="table table-bordered m-t-30 table-hover contact-list" data-paging="true" data-paging-size="7">
	                        <thead>
	                            <tr>
	                                <th>ID</th>
	                                <th>操作人</th>
	                                <th>操作终端</th>
									<th>设备名称</th>
	                                <th>货道编号</th>
									<th>原库存</th>
									<th>补货后库存</th>
									<th>补货数量</th>
									<th>补货时间</th>
	                            </tr>
	                        </thead>
	                        <tbody>
	                        	@foreach($repleni_shment as $value)
	                            <tr>
	                                <td>{{ $value->id }}</td>
	                                <td>{{ $value->operationame }}</td>
									<td>{{ $value->operation }}</td>
	                                <td>{{ $value->machines_name }}</td>
	                                <td>{{ $value->aisle_number }}</td>
									<td>{{ $value->original_inventory }}</td>
									<td>{{ $value->an_inventory }}</td>
									<td>{{ $value->quantity_num }}</td>
									<td>{{ $value->created_at }}</td>
	                            </tr>
	                            @endforeach
	                        </tbody>
	                    </table>
	                    {{ $repleni_shment->appends(['operationame' => $operationame])->links() }}
	                </div>
	            </div>
	        </div>
	    </div>
	</div>
</div>         
                        
@stop

